package com.easydata.agent.config;

import org.pf4j.DefaultPluginManager;
import org.pf4j.PluginManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class PluginConfiguration {
    @Bean
    public PluginManager pluginManager() {
        var ret =  new DefaultPluginManager();
        ret.loadPlugins();
        ret.startPlugins();
        return ret;
    }
}
